package cn.tedu.front.details.dao.persist.repository.Impl;

import cn.tedu.front.details.dao.persist.mapper.CompanyMapper;
import cn.tedu.front.details.dao.persist.repository.ICompanyRepository;
import cn.tedu.front.details.pojo.vo.CompanyVO;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class CompanyRepositoryImpl implements ICompanyRepository {
    @Autowired
    private CompanyMapper companyMapper;
    @Override
    public CompanyVO getCompanyById(Long id) {
        return companyMapper.getCompanyById(id);
    }

    @Override
    public List<CompanyVO> getStandard() {
        return companyMapper.getCompany();
    }
}
